package com.wxzz.elearing.user.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.wxzz.elearning.common.bean.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(value = "EnterpriseOrganization对象", description = "组织架构")
public class EnterpriseOrganization extends BaseEntity {

    @ApiModelProperty(value = "层级")
    private Integer level;

    @ApiModelProperty(value = "名称")
    private String organizationName;

    @ApiModelProperty(value = "父级id")
    private Long pid;

    @ApiModelProperty(value = "企业id")
    private Long enterpriseId;

    @ApiModelProperty(value = "部门管理者用户id")
    private Long wxUserId;

    @TableField(exist = false)
    @ApiModelProperty(value = "昵称")
    private String nickname;

    @TableField(exist = false)
    @ApiModelProperty(value = "手机号")
    private String phone;

    @TableField(exist = false)
    @ApiModelProperty(value = "人员数量")
    private Integer personNum = 0;

    @TableField(exist = false)
    private boolean _loading = false;

    @TableField(exist = false)
    private Object[] children = new Object[]{};

}
